package com.example.demo.mp.entity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.core.base.BizEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 属性(事件)触发器
 * </p>
 *
 * @author JXY
 * @since 2022-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("canvas_trigger")
public class CanvasTriggerEntity extends BizEntity<CanvasTriggerEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 触发器类型:TriggerType
     */
    @TableField("type")
    private Integer type;

    /**
     * 绑定的属性或事件key
     */
    @TableField("property_key")
    private String propertyKey;

    /**
     * 画布id
     */
    @TableField("canvas_id")
    private Long canvasId;

    /**
     * 执行器id
     */
    @TableField("actuator_id")
    private Long actuatorId;

    /**
     * 用户标识
     */
    @TableField("user_symbol")
    private String userSymbol;

    /**
     * 节点ids 1,2,3 英文逗号
     */
    @TableField("node_ids")
    private String nodeIds;

    /**
     * 客群标识
     */
    @TableField("user_group_symbol")
    private String userGroupSymbol;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
